package com.example.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "person")
public class Person {
    private int age;    // 年龄
    private String sex; // 性别
    private String name;    // 姓名
    private String[] loveNos;   // 喜欢的数字
    private List<String> books; // 阅读的书籍
    private List<Map<String, String>> addressList;  // 常住地址
    private Map<String, String> drinkMap;   // 一周饮品


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getLoveNos() {
        return loveNos;
    }

    public void setLoveNos(String[] loveNos) {
        this.loveNos = loveNos;
    }

    public List<String> getBooks() {
        return books;
    }

    public void setBooks(List<String> books) {
        this.books = books;
    }

    public List<Map<String, String>> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Map<String, String>> addressList) {
        this.addressList = addressList;
    }

    public Map<String, String> getDrinkMap() {
        return drinkMap;
    }

    public void setDrinkMap(Map<String, String> drinkMap) {
        this.drinkMap = drinkMap;
    }
}
